import types

from graphic.rectangle import Rectangle, rectangle_area

cir = Rectangle(5,10)
cir.calculate_area = types.MethodType(rectangle_area, cir)
cir.calculate_area()
